<?php
/**
 * Created by PhpStorm.
 * User: bob
 * Date: 19-7-14
 * Time: 上午8:34
 */

namespace App\Api\Auth\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Zizaco\Entrust\Traits\EntrustUserTrait;

class Users extends Authenticatable
{
    use EntrustUserTrait;
    protected $table = 'business_users';

    protected $fillable = [
        'id', 'user_id', 'shop_id', 'bank', 'bank_person', 'bank_account','created_at','update_at', 'login_name', 'real_name', 'status',
        'password', 'api_token',
    ];

    protected $hidden = [
        'password', 'remember_token', 'api_token',
    ];

    static $status = [
        '-100' => '停用',
        '100' => '在用',
    ];
}